<?php
/**
 * Created by PhpStorm.
 * User: longli
 * VX: isa1589518286
 * Date: 2021/08/18
 * Time: 18:06
 * @link http://www.lmterp.cn
 */

namespace app\common\behavior\order;

use app\common\behavior\BaseBehavior;
use app\common\model\Orders;
use think\Console;

/**
 * 导入订单检查订单的完整性
 * Class LockStock
 * @package app\common\behavior\order
 */
class OrderCheck extends BaseBehavior
{
    /**
     * 查检订单
     * @param Orders $order
     * @date 2021/08/18
     * @author longli
     */
    public function run(Orders $order)
    {
        if(empty($order)) return;
        Console::call('order_check', ["--ids={$order->order_id}"]);
    }
}